import React, {PureComponent} from 'react'
import PropTypes from 'prop-types'

class Empty extends PureComponent {
  render() {
    const {title} = this.props
    return (
      <div
        style={{
          padding: '30px 0'
        }}
        className="flex-column align-center justify-center"
      >
        <i
          style={{
            fontSize: 100
          }}
          className="riconfont ricon-zanwuxiaoxi"
        />
        <span style={{
          display: 'inline-block',
          padding: '10px 0 0 0'
        }}>{title}</span>
      </div>
    )
  }
}

Empty.propsTypes = {
  title: PropTypes.string
}

Empty.defaultProps = {
  title: '暂无数据~'
}

export default Empty
